package cn.kduck;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class KduckAiWeb {
    public static void main(String[] args) {
        SpringApplication.run(KduckAiWeb.class,args);
    }

//    @Bean
//    public CommandLineRunner runner(ChatClient.Builder builder, List<McpSyncClient> mcpClients) {
//        return args -> {
//            ChatClient chatClient = builder
//                    .defaultAdvisors(new MessageChatMemoryAdvisor(new InMemoryChatMemory()))
//                    //这里装配可用的工具
//                    .defaultTools(new SyncMcpToolCallbackProvider(mcpClients))
//                    .build();
//
//            try (Scanner scanner = new Scanner(System.in)) {
//                while (true) {
//                    System.out.print("\n👨用户: ");
//                    System.out.println("\n🤖️助手: " +
//                            chatClient.prompt(scanner.nextLine())
//                                    .call()
//                                    .content());
//                }
//            }
//        };
//    }


}